import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import * as echarts from 'echarts';
import router from './router';
import dataV from '@jiaminghi/data-view';
import '@/permission'; // permission control
import '@/components/register-option'
import '@/components/register-cpt'
import '@/assets/font/custom-font.css';
import '@/utils/RegisterMap';
import '@/style/index.less'

import '@/package/widget'
import '@/package/options'

import common from '@/components/common'
import perm from '@/utils/directives/perm'
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
import 'highlight.js/styles/vs2015.css'



Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(dataV);
Vue.use(common)
Vue.use(perm)
Vue.use(preview, {
    fullscreenEl: false, // 是否显示全屏按钮
})

new Vue({
    router,
    render: (h) => h(App),
}).$mount('#app');
